package wangwenjun.phase2.concurrencypattern.eventbus.google.demo05;

import com.google.common.eventbus.Subscribe;
import lombok.extern.slf4j.Slf4j;

/**
 * @author ChangLiang
 * @date 2020/6/19
 */
@Slf4j
public class ExceptionListener {

    @Subscribe
    public void doAction01(String event) {
        log.info("invoke doAction1 event:{}", event);
    }

    @Subscribe
    public void doAction02(String event) {
        log.info("invoke doAction2 event:{}", event);
    }

    @Subscribe
    public void doAction03(String event) {
        log.info("invoke doAction3 event:{}", event);
        throw new RuntimeException();
    }
}
